/*
 * @Date: 2024-04-02 14:58:12
 * @LastEditors: bingkui.wu
 * @LastEditTime: 2024-04-02 15:40:59
 * @Description: 年级
 */
import mongoose, { Schema, Model, Document } from "mongoose";

export interface IBookGrade extends Document {
    /** 教材Id */
    categoryId: number,
    /** 年级Id */
    gradeId: number
    /** 年级名称 */
    gradeName: string;
}

export interface IBookGradeModel extends Model<IBookGrade> {}

const schema = new Schema({
    categoryId: Number,
    gradeId: Number,
    gradeName: String
});

export const BookGrade = mongoose.model<IBookGrade>("book_grade", schema) as IBookGradeModel;
